/**
 * Copyright &copy; 2019-2022 <a href="https://gitee.com/rit/zx-pm">zx-pm</a> All rights reserved.
 */
package com.zx.pm.modules.zx.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zx.pm.common.persistence.Page;
import com.zx.pm.common.service.CrudService;
import com.zx.pm.modules.zx.entity.ExpertsInfo;
import com.zx.pm.modules.zx.dao.ExpertsInfoDao;

/**
 * 评审专家信息管理Service
 * @author forest
 * @version 2019-01-24
 */
@Service
@Transactional(readOnly = true)
public class ExpertsInfoService extends CrudService<ExpertsInfoDao, ExpertsInfo> {

	public ExpertsInfo get(String id) {
		return super.get(id);
	}
	
	public List<ExpertsInfo> findList(ExpertsInfo expertsInfo) {
		return super.findList(expertsInfo);
	}
	
	public Page<ExpertsInfo> findPage(Page<ExpertsInfo> page, ExpertsInfo expertsInfo) {
		return super.findPage(page, expertsInfo);
	}
	
	@Transactional(readOnly = false)
	public void save(ExpertsInfo expertsInfo) {
		super.save(expertsInfo);
	}
	
	@Transactional(readOnly = false)
	public void saveExpertsInfo(ExpertsInfo expertsInfo) {
		dao.insert(expertsInfo);
	}
	
	
	@Transactional(readOnly = false)
	public void delete(ExpertsInfo expertsInfo) {
		super.delete(expertsInfo);
	}
	
	public Integer expertsExist(ExpertsInfo expertes) {
		
		return dao.expertsExist(expertes);
	}
	
	public Integer phoneIsExist(ExpertsInfo expertes) {
		
		return dao.phoneIsExist(expertes);
	}
	
	public ExpertsInfo getExpertsInfo(String card) {
		return dao.getExpertsInfo(card);
	}
}